import java.util.Scanner;

import Herotestw.Ultraman;
import ss.Hero;

public class UltramanTest {
    public static void main(String[] args) {

    Scanner input = new Scanner(System.in);
    Ultraman[] ul = new Ultraman[2];
        for (int i = 0; i < ul.length; i++) {
        ul[i] = new Ultraman("名字", 0, 100, 100, "技能","人间体名","地球防卫部名",true,"主色调","形态") ;
        System.out.println("请输入英雄名");
        String inputn = input.nextLine();
        System.out.println("请输入年龄");
        int inputa = input.nextInt();
        System.out.println("请输入攻击力");
        int inputf = input.nextInt();
        System.out.println("请输入防御力");
        int inputd = input.nextInt();
        input.nextLine();
        System.out.println("请输入技能");
        String inputs = input.nextLine();
        System.out.println("输入人间体名");
        String loadh = input.nextLine();
        System.out.println("输入防卫部名");
        String loadd = input.nextLine();
        System.out.println("输入立场");
        int loads = input.nextInt();
        input.nextLine();
        System.out.println("输入主色调");
        String inputm = input.nextLine();
        System.out.println("输入形态");
        String inputt = input.nextLine();
        ul[i].setUltramanInfo(inputn, inputa, inputf, inputd, inputs, loadh, loadd);
        ul[i].getUltramanInfo();
        ul[i].setShow(loads, inputm, inputt);
        ul[i].toString();
        System.out.println(ul[i]);
        }
        ul[0].sharedGoal();
        System.out.println("两个奥特曼相同吗？" + ul[0].equals(ul[1]));
        
        Hero ploymophicHe = new Ultraman();
        System.out.println(ploymophicHe.hero);
        ploymophicHe.togetherProtect();//将输出“共同的守护”，因为父类的该方法已经被继承过来了
        ploymophicHe.heroProtect();//将输出“奥特曼的守护”，因为此时奥特曼的方法已经被重写
        
        
        
        
        

    }
}